/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Tbv_maquina_tbv_productoDetachedCriteria extends AbstractORMDetachedCriteria {
	public final IntegerExpression id_maquina_producto;
	
	public Tbv_maquina_tbv_productoDetachedCriteria() {
		super(orm.Tbv_maquina_tbv_producto.class, orm.Tbv_maquina_tbv_productoCriteria.class);
		id_maquina_producto = new IntegerExpression("id_maquina_producto", this.getDetachedCriteria());
	}
	
	public Tbv_maquina_tbv_productoDetachedCriteria(DetachedCriteria aDetachedCriteria) {
		super(aDetachedCriteria, orm.Tbv_maquina_tbv_productoCriteria.class);
		id_maquina_producto = new IntegerExpression("id_maquina_producto", this.getDetachedCriteria());
	}
	
	public Tbv_maquinaDetachedCriteria createTbv_maquinama_id_maquinaCriteria() {
		return new Tbv_maquinaDetachedCriteria(createCriteria("tbv_maquinama_id_maquina"));
	}
	
	public Tbv_productoDetachedCriteria createTbv_productopr_id_productoCriteria() {
		return new Tbv_productoDetachedCriteria(createCriteria("tbv_productopr_id_producto"));
	}
	
	public Tbv_maquina_tbv_producto uniqueTbv_maquina_tbv_producto(PersistentSession session) {
		return (Tbv_maquina_tbv_producto) super.createExecutableCriteria(session).uniqueResult();
	}
	
	public Tbv_maquina_tbv_producto[] listTbv_maquina_tbv_producto(PersistentSession session) {
		List list = super.createExecutableCriteria(session).list();
		return (Tbv_maquina_tbv_producto[]) list.toArray(new Tbv_maquina_tbv_producto[list.size()]);
	}
}

